package ru.bytedog.oiot.counter.bot.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import ru.bytedog.oiot.counter.bot.entity.BotUser;

import java.util.Optional;

@Repository
public interface BotUserRepository extends JpaRepository<BotUser, Long> {

    Optional<BotUser> findByUserName(String userName);
}
